<?php

use Dcat\Admin\Admin;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::routes();

Route::group([
	'prefix' => config('admin.route.prefix'),
	'namespace' => config('admin.route.namespace'),
	'middleware' => config('admin.route.middleware'),
], function (Router $router) {
	$router->get('/', 'HomeController@index');
	//积分明细
	$router->resource('integral', 'IntegralController');
	//用户积分
	$router->resource('sign', 'SignController');
	//秒杀管理
	$router->resource('seckillConfig', 'GoodsConfigController');
	//秒杀商品
	$router->resource('seckillGoods', 'SeckillGoodController');
    //直播管理
    $router->resource('live_broadcast_room', 'LiveBroadcastRoomController');
    //直播间页面
    $router->get('live',[\App\Http\Controllers\LiveStream\LiveStreamController::class,'livePage']);
    //录播列表
    $router->resource('rec_live','RecLiveController');
    //录播页面
    $router->get('recLive',[\App\Http\Controllers\LiveStream\LiveStreamController::class,'recLive']);
    //积分列表
    $router->resource('GoodController','GoodController');
    //团长审核
    $router->resource('commandermanage','CommanderAuditController');
    //团长管理
    $router->resource('commander','CommanderController');
	//用户管理
	$router->resource('usermanage', 'UserInfoController');
	//拼团列表
	$router->resource('grouplist', 'CombinationController');
	//用户积分
	$router->resource('sign', 'SignController');
	$router->resource('live_broadcast_room', 'LiveBroadcastRoomController');
	//直播管理
	$router->resource('live_broadcast_room', 'LiveBroadcastRoomController');
	//直播间页面
	$router->get('live', [\App\Http\Controllers\LiveStream\LiveStreamController::class, 'livePage']);
	$router->resource('usermanage', 'UserInfoController');
	//用户积分
	$router->resource('sign', 'SignController');
	//拼团商品
	$router->resource('spellgoods', 'GroupController');
	//团长审核
	$router->resource('commandermanage', 'CommanderAuditController');
	//团长管理
	$router->resource('commander', 'CommanderController');
	//11拼团商品
    $router->resource('groupGoods','GroupGoodController');
});
